import request from '@/utils/index'

// 获取一级分类列表数据 ---<全部分类、南北干货...等类别>---
export const reqCategoryAPI = (id) => {
    return request({
        url: '/category',
        method: 'get',
        params: {
            id
        }
    })
}

// 获取二级分类列表数据
export const reqCategoryFilterAPI = (id) => {
    return request({
        url: '/category/sub/filter',
        method: 'get',
        params: {
            id
        }
    })
}

//获取导航数据
export const reqSubCategoryAPI = (data) => {
    return request({
        url: '/category/goods/temporary',
        method: 'post',
        data
    })
}